package com.woniuxy.dao;

import com.woniuxy.pojo.PreOrder;
import com.woniuxy.vo.PreOrderVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PreOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PreOrder record);

    int insertSelective(PreOrder record);

    PreOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PreOrder record);

    int updateByPrimaryKey(PreOrder record);

    List<PreOrder> findAllOreder( PreOrderVo preOrderVo);
   @Select("select * from pre_order where num=#{orderid}")
    PreOrder findpreorder(String orderid);

   @Select("select * from pre_order")
    List<PreOrder> findAllpreorder();
}